import { io } from "socket.io-client";
import { profile } from "@depjs/storage";

const path = "ws://localhost:4000";

const socket = profile.userName
    ? io(path, { query: { user: profile.userName } })
    : io(path);

export default socket;
